<div class="content-title">
    <?php if($section->getType()->getType() == 'Download'): ?>
        <a href="<?php echo url_for('render_download_content', $content) ?>">
            <h2><?php echo $content->getTitle()?></h2>
        </a>
    <?php else: ?>
        <h2><?php echo $content->getTitle()?></h2>
    <?php endif; ?>
</div>
<div class="content-file">
    <?php if($section->getType()->getType() == 'Download'): ?>
        <a href="<?php echo url_for('render_download_content', $content) ?>">
            <img alt="<?php echo $content->getTitle()?>"
                 src="<?php echo '/uploads/portal_'.$section->getPortalId().'/images/'.$best->getFile() ?>"
                 >
        </a>
        <div class="donload-message"><em>Para descargar haga clic sobre el contenido.</em></div>
    <?php else: ?>
        <img alt="<?php echo $content->getTitle()?>"
             src="<?php echo '/uploads/portal_'.$section->getPortalId().'/images/'.$best->getFile() ?>"
             >
     <?php endif; ?>
    <?php if($content->getAuthor() != ''): ?>
        <div class="content-author"><small><em>Autor: <?php echo $content->getAuthor()?></em></small></div>
    <?php endif; ?>
</div>